import {axios} from '@/utils/request'

// api接口列表
const api = {
    log: '/points-transaction',
    ruleSelect: '/points-rule/select',
    adjust: '/points-account/adjust',
}

// 积分明细
export function transaction(params) {
    return axios({
        url: api.log,
        method: 'get',
        params
    })
}

// 积分规则下拉
export function ruleSelect() {
    return axios({
        url: api.ruleSelect,
        method: 'get'
    })
}

//
export function adjust(data) {
    return axios({
        url: api.adjust,
        method: 'post',
        data
    })
}